package com.glut.gultguy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.glut.gultguy.To.ArticleTo;
import com.glut.gultguy.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glut.gultguy.vo.ArticleVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2022-09-05
 */
public interface ArticleService extends IService<Article> {
    List<ArticleVo> getArticle(Integer page);//分页获取动态
    Map<String,Integer> addArticle(ArticleTo to);//发表动态

    List<ArticleVo> getMyArticles(String openid);

    ArticleVo getOneArticle(String articleId);
}
